.drawer {
  position: fixed;
  display: flex;
  top: 0;
  left: -330px;
  width: 320px;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background-color: white;
  transition: left 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.drawer.close{
  background-color: white;
}

.drawer.open {
  left: 0;
  /* 打开抽屉时将其移到屏幕内部 */
}

/* 媒体查询：在小屏幕下应用不同的样式 */
/* @media screen and (min-width: 770px) {
  .drawer {
    position: fixed;
    display: flex;
    top: 0;
    left: 50%;
    width: 320px;
    height: 100%;
    margin-left: -196px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: white;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    z-index: -90;
  }

  .drawer.open {
    position: fixed;
    display: flex;
    top: 0;
    left: 50%;
    width: 320px;
    height: 100%;
    margin-left: -196px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: white;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    opacity: 1;
    z-index: 90;
  }

  .drawer.close {
    position: fixed;
    display: flex;
    top: 0;
    left: 50%;
    width: 320px;
    height: 100%;
    margin-left: -196px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    z-index: -90;
  }
} */

.drawer-content {
  width: 100%;
  display: flex;
  padding: 10px;
}

.drawer-bounds {
  display: flex;
  width: inherit;
  height: inherit;
  overflow: hidden;
  padding: 0px;
  margin-top: 34px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.close-button {
  position: absolute;
  display: flex;
  align-self: flex-start;
  justify-self: center;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  cursor: pointer;
}

.close-button-img {
  width: 24px;
  height: 24px;
}